package com.webshopping.entry;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Order {

	private int id;
	private String orderNumber;
	private int userId;
	private int addressId;
	private BigDecimal allPrice;
	private BigDecimal discount;
	private String carriage;
	private String payMethod;
	private BigDecimal realPrice;
	private int number;
	private Date createTime;
	private Date payTime;
	private Date deliveryTime;
	private Date finishTime;
	private int attribute;
	private List<SubOrder> subOrders;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getAddressId() {
		return addressId;
	}
	public void setAddressId(int addressId) {
		this.addressId = addressId;
	}
	public BigDecimal getAllPrice() {
		return allPrice;
	}
	public void setAllPrice(BigDecimal allPrice) {
		this.allPrice = allPrice;
	}
	public BigDecimal getDiscount() {
		return discount;
	}
	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}
	public String getCarriage() {
		return carriage;
	}
	public void setCarriage(String carriage) {
		this.carriage = carriage;
	}
	
	public String getPayMethod() {
		return payMethod;
	}
	public void setPayMethod(String payMethod) {
		this.payMethod = payMethod;
	}
	public BigDecimal getRealPrice() {
		return realPrice;
	}
	public void setRealPrice(BigDecimal realPrice) {
		this.realPrice = realPrice;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getPayTime() {
		return payTime;
	}
	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}
	public Date getDeliveryTime() {
		return deliveryTime;
	}
	public void setDeliveryTime(Date deliveryTime) {
		this.deliveryTime = deliveryTime;
	}
	public Date getFinishTime() {
		return finishTime;
	}
	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}
	public int getAttribute() {
		return attribute;
	}
	public void setAttribute(int attribute) {
		this.attribute = attribute;
	}
	public List<SubOrder> getSubOrders() {
		return subOrders;
	}
	public void setSubOrders(List<SubOrder> subOrders) {
		this.subOrders = subOrders;
	}
	@Override
	public String toString() {
		return "Order [id=" + id + ", orderNumber=" + orderNumber + ", userId=" + userId + ", addressId=" + addressId
				+ ", allPrice=" + allPrice + ", discount=" + discount + ", carriage=" + carriage + ", payMethod="
				+ payMethod + ", realPrice=" + realPrice + ", number=" + number + ", createTime=" + createTime
				+ ", payTime=" + payTime + ", deliveryTime=" + deliveryTime + ", finishTime=" + finishTime
				+ ", attribute=" + attribute + ", subOrders=" + subOrders + "]";
	}


	

}

